#ifndef SINGLE
//  An adapted ObjectSpace example for use with SGI STL

#include <algo.h>
#include <iostream.h>

#ifdef MAIN
#define remif1_test main
#endif
static bool odd(int a_)
{
  return a_ % 2;
}
#endif
int remif1_test(int, char**)
{
  cout<<"Results of remif1_test:"<<endl;

#ifndef ACORN_CFRONT
int numbers[6] = { 0, 0, 1, 1, 2, 2 };
#else
static int numbers[6] = { 0, 0, 1, 1, 2, 2 };
#endif

  remove_if(numbers, numbers + 6, odd);
  for(int i = 0; i < 6; i++)
    cout << numbers[i] << ' ';
  cout << endl;
  return 0;
}
